import axios from '@/libs/api.request'

/**
 * @name: getZhexianByDay
 * @test: test font
 * @msg: 折线图数据
 * @param {type}
 * @return:
 */
export const getZhexianByDay = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterDetailByDay',
    method: 'get',
    params
  })
}

/**
 * 表格数据
 * @return {[type]}        [description]
 */
export const tableData = (params) => {
  return axios.request({
    url: '/api/tableGas/getMeterPagedByGasClass',
    method: 'get',
    params
  })
}
/**
 * 提交修改数据
 * @return {[type]}        [description]
 */
export const submitData = (data) => {
  return axios.request({
    url: '/api/tableGas/amendment',
    method: 'post',
    data
  })
}
/**
 * K线图数据
 * @return {[type]}        [description]
 */
export const kxianData = (params) => {
  return axios.request({
    url: '/api/tableGas/getMeterGasByDays',
    method: 'get',
    params
  })
}

/**
 * 表格数据修改
 * @param  {[type]} params [description]
 * @return {[type]}        [description]
 */
export const getMeterUnitDetail = (id) => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterUnitDetail/' + id,
    method: 'get'
  })
}
